//
//  QXNoResultViewManage.m
//  Pods
//
//  Created by Admin on 16/12/27.
//
//

#import "QXNoResultViewManage.h"
@interface QXNoResultViewManage(){
    
}
@property (unsafe_unretained, nonatomic) IBOutlet UIImageView *noResultImageView;
@property (unsafe_unretained, nonatomic) IBOutlet UILabel *noResultLabel;

@end
@implementation QXNoResultViewManage

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+ (instancetype)shareInstance{
    
    static QXNoResultViewManage *noResultView;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        NSBundle *bundle = [NSBundle bundleForClass:[self class]];
        NSURL *url = [bundle URLForResource:@"QXNoResultViewManage" withExtension:@"bundle"];
        
        noResultView = [[[NSBundle bundleWithURL:url] loadNibNamed:@"QXNoResultView" owner:nil options:nil] lastObject];
    });
    
       return noResultView;
}
- (void)setNoResultTip:(NSString *)noResultTip{
    
    _noResultLabel.text = noResultTip;
}

- (void)setNoResultImage:(UIImage *)noResultImage{
    
    _noResultImageView.image = noResultImage;
}
@end
